<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>用户列表</title>
<%@include file="/WEB-INF/jsp/public/commons.jspf"%>
<script type="text/javascript">
     $(function(){
     	$("[name=type]").change(function(){
     		$("#pageCondition").submit();
     	});
     	
     });
</script>
</head>
<body>
 <ol class="breadcrumb">
  <li><a href="home_innerCentre.action">首页</a></li>
  <li class="active">用户管理</li>
</ol>
 	<div class="col-sm-7">
 	<form id="pageCondition" action="user_list.action">
	   <div class="form-group col-sm-5" style="float:left;">
	   	<s:select name="type" cssClass="form-control" list="#{0:'业主',2:'物业公司人员',1:'管理人员'}"
	   		headerKey="3" headerValue="所有人员"
	   	/>
	   </div>
	   
	 	<div class="col-sm-7">
	 		<form class="bs-example bs-example-form" role="form">
	 			<div class="input-group col-sm-9" style="float:left;">
			         <span class="input-group-addon">用户名</span>
			         <input type="text" name="name" value="${name }" class="form-control input-medium search-query" placeholder="用户查询">
		         </div>
			     <input type="submit" class="btn btn-default  col-sm-2" value="查询"/>
			     
	 	    </form>
	 	</div>
	</form>
 	</div>
 	<div class="col-sm-1" style="float:right;">
	 	<s:a cssClass="btn btn-success glyphicon glyphicon-plus" action="user_addUI.action">添加</s:a>
 	</div>
 <div class="container-fluid">
<table class="table table-striped table-bordered">
   <thead>
      <tr class="success">
		<td>用户名</td>
		<td>登录名</td>
		<td>电话</td>
		<td>Email</td>
		<td>用户标识</td>
		<td>相关操作</td>
      </tr>
   </thead>
   <tbody>
     <s:iterator value="recordList">
		<tr>
			<td>${name}</td>
			<td>${loginName}</td>
			<td>${phoneNumber}</td>
			<td>${email}</td>
			<td>${type==1?"工作人员":"普通用户"}</td>
			<td>
				<s:a action="user_delete?id=%{id}">删除</s:a>
				<s:a action="user_editUI?id=%{id}">修改</s:a>
			</td>
		</tr>
	</s:iterator>
   </tbody>
</table>
<%--分页信息 --%>
<%@include file="/WEB-INF/jsp/public/pageView.jspf"%>
</div>
</body>
</html>